#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
void exit_fun1(void);
void exit_fun2(void);
void exit_fun3(void);
int main(int argc,char* argv[])
{
	atexit(exit_fun1);
	atexit(exit_fun2);
	atexit(exit_fun3);
	if(strcmp(argv[1],"exit") == 0)
	{
		printf("I am exit\n");
		exit(0);
	}
	if(strcpy(argv[1],"_exit") == 0)
	{
		printf("I am _exit\n");
		_exit(0);
	}
	if(strcmp(argv[1],"_Exit") == 0)
	{
		printf("I am _Exit\n");
		_Exit(0);
	}
	return 0;
}
void exit_fun1(void)
{
	printf("exit_fun1\n");
}
void exit_fun2(void)
{
	printf("exit_fun2\n");
}
void exit_fun3(void)
{
	printf("exit_fun3\n");
}
